package com.dule.Medic.service;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.dule.Medic.model.Doctor;
import com.dule.Medic.model.MedEntry;
import com.dule.Medic.model.Patient;

public interface MedEntryService 
{
	@CommitAfter      
	Long save(MedEntry medEntry);    
	
	@CommitAfter      
	boolean update(MedEntry medEntry);   
	
	@CommitAfter
	public boolean delete(MedEntry medEntry); 	
	
	List<MedEntry> retrieve(Patient patient);    
	List<MedEntry> retrieve(Doctor doctor); 
	
	MedEntry retrieveOne(Long Id);
	public List<MedEntry> retrieveAll(); 

}
